package dao;

import pojo.ChangeRoom;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 * Dao 层接口
 */
public interface ChangeRoomDao {
    //查询所有换房信息
    public abstract ArrayList<ChangeRoom> findAll();

    //根据id获取换房对象
    public abstract ChangeRoom findById(Integer stuId);

    //新增换房信息
    public abstract int insert(Connection con,ChangeRoom changeRoom) throws SQLException;

    //修改换房信息
    public abstract int update(ChangeRoom changeRoom);

    //删除换房信息
    public abstract int delete(ChangeRoom changeRoom);
}
